.class public Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;
.super Landroid/content/BroadcastReceiver;


# instance fields
.field private a:Landroid/app/NotificationManager;

.field private b:Landroid/content/Intent;

.field private c:Landroid/app/PendingIntent;

.field private d:I

.field private e:I

.field private f:I

.field private g:I

.field private h:Lcom/waiqin365/lightapp/kaoqin/fw;

.field private i:Lcom/waiqin365/base/login/c/i;

.field private j:Ljava/util/List;

.field private k:I

.field private l:I

.field private m:I

.field private n:I


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->a:Landroid/app/NotificationManager;

    const/16 v0, 0x3e9

    iput v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->d:I

    const/16 v0, 0x3ea

    iput v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->e:I

    const/16 v0, 0x3eb

    iput v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->f:I

    const/16 v0, 0x3ec

    iput v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->g:I

    const/16 v0, 0x7d1

    iput v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->k:I

    const/16 v0, 0x7d2

    iput v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->l:I

    const/16 v0, 0x7d3

    iput v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->m:I

    const/16 v0, 0x7d4

    iput v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->n:I

    return-void
.end method

.method public static d(Landroid/content/Context;)Z
    .locals 2

    const-string/jumbo v0, "data/sys/client_auth_menus.json"

    invoke-static {v0, p0}, Lcom/fiberhome/gaea/client/d/c;->e(Ljava/lang/String;Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string/jumbo v1, "6014697364812946406"

    invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public static e(Landroid/content/Context;)Z
    .locals 2

    const-string/jumbo v0, "data/sys/client_auth_menus.json"

    invoke-static {v0, p0}, Lcom/fiberhome/gaea/client/d/c;->e(Ljava/lang/String;Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string/jumbo v1, "9154541745586703286"

    invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private f(Landroid/content/Context;)V
    .locals 10

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/kaoqin/fw;->a:Z

    if-nez v0, :cond_1

    :cond_0
    return-void

    :cond_1
    const-string/jumbo v0, "alarm"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/AlarmManager;

    new-instance v3, Landroid/content/Intent;

    const-class v1, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;

    invoke-direct {v3, p1, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;

    move-result-object v4

    iget-object v4, v4, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v4, "com.waiqin.lightapp.kaoqin.checkin"

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/kaoqin/fw;->a()[J

    move-result-object v4

    move v1, v2

    :goto_0
    array-length v5, v4

    if-ge v1, v5, :cond_0

    aget-wide v6, v4, v1

    const-wide/16 v8, 0x0

    cmp-long v5, v6, v8

    if-gez v5, :cond_2

    :goto_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_2
    new-instance v5, Ljava/util/Date;

    invoke-direct {v5}, Ljava/util/Date;-><init>()V

    aget-wide v6, v4, v1

    invoke-virtual {v5, v6, v7}, Ljava/util/Date;->setTime(J)V

    const-string/jumbo v5, "checkin_type"

    invoke-virtual {v3, v5, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const/high16 v5, 0x8000000

    invoke-static {p1, v1, v3, v5}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v5

    aget-wide v6, v4, v1

    invoke-virtual {v0, v2, v6, v7, v5}, Landroid/app/AlarmManager;->set(IJLandroid/app/PendingIntent;)V

    goto :goto_1
.end method

.method private g(Landroid/content/Context;)V
    .locals 10

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/kaoqin/fw;->b:Z

    if-nez v0, :cond_1

    :cond_0
    return-void

    :cond_1
    const-string/jumbo v0, "alarm"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/AlarmManager;

    new-instance v3, Landroid/content/Intent;

    const-class v1, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;

    invoke-direct {v3, p1, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;

    move-result-object v4

    iget-object v4, v4, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v4, "com.waiqin.lightapp.kaoqin.checkout"

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/kaoqin/fw;->b()[J

    move-result-object v4

    move v1, v2

    :goto_0
    array-length v5, v4

    if-ge v1, v5, :cond_0

    aget-wide v6, v4, v1

    const-wide/16 v8, 0x0

    cmp-long v5, v6, v8

    if-gez v5, :cond_2

    :goto_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_2
    new-instance v5, Ljava/util/Date;

    invoke-direct {v5}, Ljava/util/Date;-><init>()V

    aget-wide v6, v4, v1

    invoke-virtual {v5, v6, v7}, Ljava/util/Date;->setTime(J)V

    const-string/jumbo v5, "checkout_type"

    invoke-virtual {v3, v5, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const/high16 v5, 0x8000000

    invoke-static {p1, v1, v3, v5}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v5

    aget-wide v6, v4, v1

    invoke-virtual {v0, v2, v6, v7, v5}, Landroid/app/AlarmManager;->set(IJLandroid/app/PendingIntent;)V

    goto :goto_1
.end method

.method private h(Landroid/content/Context;)V
    .locals 10

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->i:Lcom/waiqin365/base/login/c/i;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->i:Lcom/waiqin365/base/login/c/i;

    iget-boolean v0, v0, Lcom/waiqin365/base/login/c/i;->a:Z

    if-nez v0, :cond_1

    :cond_0
    return-void

    :cond_1
    const-string/jumbo v0, "alarm"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/AlarmManager;

    new-instance v3, Landroid/content/Intent;

    const-class v1, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;

    invoke-direct {v3, p1, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;

    move-result-object v4

    iget-object v4, v4, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v4, "com.waiqin.lightapp.daily.checkon"

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->i:Lcom/waiqin365/base/login/c/i;

    invoke-virtual {v1}, Lcom/waiqin365/base/login/c/i;->a()[J

    move-result-object v4

    move v1, v2

    :goto_0
    array-length v5, v4

    if-ge v1, v5, :cond_0

    aget-wide v6, v4, v1

    const-wide/16 v8, 0x0

    cmp-long v5, v6, v8

    if-gez v5, :cond_2

    :goto_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_2
    const/high16 v5, 0x8000000

    invoke-static {p1, v1, v3, v5}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v5

    aget-wide v6, v4, v1

    invoke-virtual {v0, v2, v6, v7, v5}, Landroid/app/AlarmManager;->set(IJLandroid/app/PendingIntent;)V

    goto :goto_1
.end method

.method private i(Landroid/content/Context;)V
    .locals 13

    const/4 v12, 0x2

    const/4 v11, 0x1

    const/4 v10, 0x7

    const/4 v3, 0x0

    const/16 v9, 0x31

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->j:Ljava/util/List;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->j:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    return-void

    :cond_1
    move v2, v3

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->j:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge v2, v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->j:Ljava/util/List;

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/zydk/e;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/zydk/e;->c()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-nez v4, :cond_2

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v4

    if-eq v4, v10, :cond_3

    :cond_2
    :goto_1
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_0

    :cond_3
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v4

    invoke-virtual {v4, v10}, Ljava/util/Calendar;->get(I)I

    move-result v5

    if-ne v5, v12, :cond_4

    invoke-virtual {v1, v3}, Ljava/lang/String;->charAt(I)C

    move-result v6

    if-ne v6, v9, :cond_2

    :cond_4
    const/4 v6, 0x3

    if-ne v5, v6, :cond_5

    invoke-virtual {v1, v11}, Ljava/lang/String;->charAt(I)C

    move-result v6

    if-ne v6, v9, :cond_2

    :cond_5
    const/4 v6, 0x4

    if-ne v5, v6, :cond_6

    invoke-virtual {v1, v12}, Ljava/lang/String;->charAt(I)C

    move-result v6

    if-ne v6, v9, :cond_2

    :cond_6
    const/4 v6, 0x5

    if-ne v5, v6, :cond_7

    const/4 v6, 0x3

    invoke-virtual {v1, v6}, Ljava/lang/String;->charAt(I)C

    move-result v6

    if-ne v6, v9, :cond_2

    :cond_7
    const/4 v6, 0x6

    if-ne v5, v6, :cond_8

    const/4 v6, 0x4

    invoke-virtual {v1, v6}, Ljava/lang/String;->charAt(I)C

    move-result v6

    if-ne v6, v9, :cond_2

    :cond_8
    if-ne v5, v10, :cond_9

    const/4 v6, 0x5

    invoke-virtual {v1, v6}, Ljava/lang/String;->charAt(I)C

    move-result v6

    if-ne v6, v9, :cond_2

    :cond_9
    if-ne v5, v11, :cond_a

    const/4 v5, 0x6

    invoke-virtual {v1, v5}, Ljava/lang/String;->charAt(I)C

    move-result v1

    if-ne v1, v9, :cond_2

    :cond_a
    invoke-virtual {v4}, Ljava/util/Calendar;->getTime()Ljava/util/Date;

    move-result-object v1

    new-instance v5, Ljava/text/SimpleDateFormat;

    const-string/jumbo v6, "yyyy-MM-dd"

    invoke-direct {v5, v6}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, v1}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v1

    new-instance v5, Ljava/text/SimpleDateFormat;

    const-string/jumbo v6, "yyyy-MM-dd HH:mm"

    invoke-direct {v5, v6}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4}, Ljava/util/Calendar;->getTimeInMillis()J

    move-result-wide v6

    invoke-virtual {v0}, Lcom/waiqin365/base/db/zydk/e;->b()Ljava/lang/String;

    move-result-object v4

    if-eqz v4, :cond_2

    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v8

    if-lez v8, :cond_2

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v8, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v8, " "

    invoke-virtual {v1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    :try_start_0
    invoke-virtual {v5, v1}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v1

    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v4

    invoke-virtual {v4, v1}, Ljava/util/Calendar;->setTime(Ljava/util/Date;)V

    invoke-virtual {v4}, Ljava/util/Calendar;->getTimeInMillis()J

    move-result-wide v4

    cmp-long v1, v6, v4

    if-gtz v1, :cond_2

    const-string/jumbo v1, "alarm"

    invoke-virtual {p1, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/app/AlarmManager;

    new-instance v6, Landroid/content/Intent;

    const-class v7, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;

    invoke-direct {v6, p1, v7}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;

    move-result-object v8

    iget-object v8, v8, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string/jumbo v8, "com.waiqin.lightapp.kaoqin.zydkcheckon"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v7, "createtime"

    invoke-virtual {v0}, Lcom/waiqin365/base/db/zydk/e;->a()Ljava/lang/Long;

    move-result-object v0

    invoke-virtual {v6, v7, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const/high16 v0, 0x8000000

    invoke-static {p1, v2, v6, v0}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v0

    const/4 v6, 0x0

    invoke-virtual {v1, v6, v4, v5, v0}, Landroid/app/AlarmManager;->set(IJLandroid/app/PendingIntent;)V
    :try_end_0
    .catch Ljava/text/ParseException; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_1

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/text/ParseException;->printStackTrace()V

    goto/16 :goto_1
.end method


# virtual methods
.method public a(Landroid/content/Context;)V
    .locals 1

    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->a()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->f(Landroid/content/Context;)V

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->g(Landroid/content/Context;)V

    :cond_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h(Landroid/content/Context;)V

    :cond_1
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->c()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->i(Landroid/content/Context;)V

    :cond_2
    return-void
.end method

.method public a(Landroid/content/Context;I)V
    .locals 7

    const v6, 0x7f020450

    const/4 v2, 0x1

    const/4 v1, 0x0

    invoke-static {p1}, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->d(Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/fw;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kaoqin/fw;-><init>()V

    invoke-virtual {v0, p1}, Lcom/waiqin365/lightapp/kaoqin/fw;->b(Landroid/content/Context;)V

    :goto_0
    return-void

    :cond_0
    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b(Landroid/content/Context;)V

    const-string/jumbo v0, ""

    if-nez p2, :cond_6

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/fw;->ak:Ljava/lang/String;

    :cond_1
    :goto_1
    if-eqz v0, :cond_2

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v3

    if-nez v3, :cond_8

    :cond_2
    :goto_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->a:Landroid/app/NotificationManager;

    if-nez v0, :cond_3

    const-string/jumbo v0, "notification"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/NotificationManager;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->a:Landroid/app/NotificationManager;

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kaoqin/fw;->c()I

    move-result v0

    const v3, 0x7f08037b

    invoke-virtual {p1, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    new-array v4, v2, [Ljava/lang/Object;

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    aput-object v0, v4, v1

    invoke-static {v3, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v0

    iget-object v4, v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;->g:Ljava/util/ArrayList;

    if-eqz v4, :cond_b

    move v0, v1

    :goto_3
    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v5

    if-ge v0, v5, :cond_b

    invoke-virtual {v4, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v5

    instance-of v5, v5, Lcom/waiqin365/base/login/LoginMainActivity;

    if-eqz v5, :cond_9

    move v0, v2

    :goto_4
    if-eqz v0, :cond_a

    new-instance v0, Landroid/content/Intent;

    const-class v2, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;

    invoke-direct {v0, p1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    const/high16 v2, 0x20000000

    invoke-virtual {v0, v2}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    const-string/jumbo v2, "menuid"

    iget-object v4, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    iget-object v4, v4, Lcom/waiqin365/lightapp/kaoqin/fw;->aq:Ljava/lang/String;

    invoke-virtual {v0, v2, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    :goto_5
    iget v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->k:I

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    invoke-static {p1, v0, v2, v1}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->c:Landroid/app/PendingIntent;

    new-instance v0, Landroid/app/Notification$Builder;

    invoke-direct {v0, p1}, Landroid/app/Notification$Builder;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0, v6}, Landroid/app/Notification$Builder;->setSmallIcon(I)Landroid/app/Notification$Builder;

    move-result-object v0

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-static {v1, v6}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/Notification$Builder;->setLargeIcon(Landroid/graphics/Bitmap;)Landroid/app/Notification$Builder;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/app/Notification$Builder;->setTicker(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;

    move-result-object v0

    const v1, 0x7f080437

    invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/Notification$Builder;->setContentTitle(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/app/Notification$Builder;->setContentText(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->c:Landroid/app/PendingIntent;

    invoke-virtual {v0, v1}, Landroid/app/Notification$Builder;->setContentIntent(Landroid/app/PendingIntent;)Landroid/app/Notification$Builder;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Notification$Builder;->getNotification()Landroid/app/Notification;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    iget-boolean v1, v1, Lcom/waiqin365/lightapp/kaoqin/fw;->c:Z

    if-eqz v1, :cond_4

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "android.resource://"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "/"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const v2, 0x7f060001

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    iput-object v1, v0, Landroid/app/Notification;->sound:Landroid/net/Uri;

    :cond_4
    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    iget-boolean v1, v1, Lcom/waiqin365/lightapp/kaoqin/fw;->d:Z

    if-eqz v1, :cond_5

    iget v1, v0, Landroid/app/Notification;->defaults:I

    or-int/lit8 v1, v1, 0x2

    iput v1, v0, Landroid/app/Notification;->defaults:I

    :cond_5
    iget v1, v0, Landroid/app/Notification;->defaults:I

    or-int/lit8 v1, v1, 0x4

    iput v1, v0, Landroid/app/Notification;->defaults:I

    iget v1, v0, Landroid/app/Notification;->flags:I

    or-int/lit8 v1, v1, 0x10

    iput v1, v0, Landroid/app/Notification;->flags:I

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->a:Landroid/app/NotificationManager;

    iget v2, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->d:I

    invoke-virtual {v1, v2, v0}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V

    goto/16 :goto_0

    :cond_6
    if-ne p2, v2, :cond_7

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/fw;->al:Ljava/lang/String;

    goto/16 :goto_1

    :cond_7
    const/4 v3, 0x2

    if-ne p2, v3, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/fw;->am:Ljava/lang/String;

    goto/16 :goto_1

    :cond_8
    new-instance v3, Ljava/text/SimpleDateFormat;

    const-string/jumbo v4, "yyyy-MM-dd HH:mm:ss"

    invoke-direct {v3, v4}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    :try_start_0
    invoke-virtual {v3, v0}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v0

    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v3

    const/4 v4, 0x5

    invoke-virtual {v3, v4}, Ljava/util/Calendar;->get(I)I

    move-result v4

    invoke-virtual {v3, v0}, Ljava/util/Calendar;->setTime(Ljava/util/Date;)V

    const/4 v0, 0x5

    invoke-virtual {v3, v0}, Ljava/util/Calendar;->get(I)I
    :try_end_0
    .catch Ljava/text/ParseException; {:try_start_0 .. :try_end_0} :catch_0

    move-result v0

    if-ne v4, v0, :cond_2

    goto/16 :goto_0

    :cond_9
    add-int/lit8 v0, v0, 0x1

    goto/16 :goto_3

    :cond_a
    new-instance v0, Landroid/content/Intent;

    const-string/jumbo v4, "android.intent.action.MAIN"

    invoke-direct {v0, v4}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    const/high16 v4, 0x10200000

    invoke-virtual {v0, v4}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    const/high16 v4, 0x100000

    invoke-virtual {v0, v4}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    const-string/jumbo v4, "android.intent.category.LAUNCHER"

    invoke-virtual {v0, v4}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    const-string/jumbo v4, "startkaoqin"

    invoke-virtual {v0, v4, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    const-string/jumbo v2, "menuid"

    iget-object v4, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    iget-object v4, v4, Lcom/waiqin365/lightapp/kaoqin/fw;->aq:Ljava/lang/String;

    invoke-virtual {v0, v2, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    const-class v4, Lcom/waiqin365/base/login/LoginSplashActivity;

    invoke-virtual {v0, v2, v4}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    goto/16 :goto_5

    :catch_0
    move-exception v0

    goto/16 :goto_2

    :cond_b
    move v0, v1

    goto/16 :goto_4
.end method

.method public a(Landroid/content/Context;J)V
    .locals 8

    const v7, 0x7f020450

    const/4 v2, 0x1

    const/4 v1, 0x0

    invoke-static {p1}, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->e(Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_1

    invoke-static {p1}, Lcom/waiqin365/base/db/zydk/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/zydk/f;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/db/zydk/f;->c()Z

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-static {p1}, Lcom/waiqin365/base/db/zydk/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/zydk/f;

    move-result-object v0

    invoke-virtual {v0, p2, p3}, Lcom/waiqin365/base/db/zydk/f;->a(J)Lcom/waiqin365/base/db/zydk/e;

    move-result-object v3

    if-eqz v3, :cond_0

    invoke-virtual {v3}, Lcom/waiqin365/base/db/zydk/e;->f()Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->a:Landroid/app/NotificationManager;

    if-nez v0, :cond_2

    const-string/jumbo v0, "notification"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/NotificationManager;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->a:Landroid/app/NotificationManager;

    :cond_2
    const v0, 0x7f0803cb

    invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v0

    iget-object v5, v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;->g:Ljava/util/ArrayList;

    if-eqz v5, :cond_7

    move v0, v1

    :goto_1
    invoke-virtual {v5}, Ljava/util/ArrayList;->size()I

    move-result v6

    if-ge v0, v6, :cond_7

    invoke-virtual {v5, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v6

    instance-of v6, v6, Lcom/waiqin365/base/login/LoginMainActivity;

    if-eqz v6, :cond_5

    move v0, v2

    :goto_2
    if-eqz v0, :cond_6

    new-instance v0, Landroid/content/Intent;

    const-class v2, Lcom/waiqin365/lightapp/kaoqin/NewTGangKaoQinActivity;

    invoke-direct {v0, p1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    const/high16 v2, 0x20000000

    invoke-virtual {v0, v2}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    :goto_3
    iget v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->n:I

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    invoke-static {p1, v0, v2, v1}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->c:Landroid/app/PendingIntent;

    new-instance v0, Landroid/app/Notification$Builder;

    invoke-direct {v0, p1}, Landroid/app/Notification$Builder;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0, v7}, Landroid/app/Notification$Builder;->setSmallIcon(I)Landroid/app/Notification$Builder;

    move-result-object v0

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-static {v1, v7}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/Notification$Builder;->setLargeIcon(Landroid/graphics/Bitmap;)Landroid/app/Notification$Builder;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/app/Notification$Builder;->setTicker(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;

    move-result-object v0

    const v1, 0x7f0803cd

    invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/Notification$Builder;->setContentTitle(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/app/Notification$Builder;->setContentText(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->c:Landroid/app/PendingIntent;

    invoke-virtual {v0, v1}, Landroid/app/Notification$Builder;->setContentIntent(Landroid/app/PendingIntent;)Landroid/app/Notification$Builder;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Notification$Builder;->getNotification()Landroid/app/Notification;

    move-result-object v0

    invoke-virtual {v3}, Lcom/waiqin365/base/db/zydk/e;->d()Ljava/lang/Boolean;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-eqz v1, :cond_3

    iget v1, v0, Landroid/app/Notification;->defaults:I

    or-int/lit8 v1, v1, 0x1

    iput v1, v0, Landroid/app/Notification;->defaults:I

    :cond_3
    invoke-virtual {v3}, Lcom/waiqin365/base/db/zydk/e;->e()Ljava/lang/Boolean;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-eqz v1, :cond_4

    iget v1, v0, Landroid/app/Notification;->defaults:I

    or-int/lit8 v1, v1, 0x2

    iput v1, v0, Landroid/app/Notification;->defaults:I

    :cond_4
    iget v1, v0, Landroid/app/Notification;->defaults:I

    or-int/lit8 v1, v1, 0x4

    iput v1, v0, Landroid/app/Notification;->defaults:I

    iget v1, v0, Landroid/app/Notification;->flags:I

    or-int/lit8 v1, v1, 0x10

    iput v1, v0, Landroid/app/Notification;->flags:I

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->a:Landroid/app/NotificationManager;

    iget v2, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->g:I

    invoke-virtual {v1, v2, v0}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V

    goto/16 :goto_0

    :cond_5
    add-int/lit8 v0, v0, 0x1

    goto/16 :goto_1

    :cond_6
    new-instance v0, Landroid/content/Intent;

    const-string/jumbo v5, "android.intent.action.MAIN"

    invoke-direct {v0, v5}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    const/high16 v5, 0x10200000

    invoke-virtual {v0, v5}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    const/high16 v5, 0x100000

    invoke-virtual {v0, v5}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    const-string/jumbo v5, "android.intent.category.LAUNCHER"

    invoke-virtual {v0, v5}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    const-string/jumbo v5, "startzydk"

    invoke-virtual {v0, v5, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    const-class v5, Lcom/waiqin365/base/login/LoginSplashActivity;

    invoke-virtual {v0, v2, v5}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    goto/16 :goto_3

    :cond_7
    move v0, v1

    goto/16 :goto_2
.end method

.method public a()Z
    .locals 2

    const/4 v0, 0x0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    if-nez v1, :cond_1

    :cond_0
    :goto_0
    return v0

    :cond_1
    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    iget-boolean v1, v1, Lcom/waiqin365/lightapp/kaoqin/fw;->a:Z

    if-nez v1, :cond_2

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    iget-boolean v1, v1, Lcom/waiqin365/lightapp/kaoqin/fw;->b:Z

    if-eqz v1, :cond_0

    :cond_2
    const/4 v0, 0x1

    goto :goto_0
.end method

.method public b(Landroid/content/Context;)V
    .locals 1

    invoke-static {p1}, Lcom/waiqin365/lightapp/kaoqin/fw;->c(Landroid/content/Context;)Lcom/waiqin365/lightapp/kaoqin/fw;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    invoke-static {p1}, Lcom/waiqin365/base/login/c/i;->b(Landroid/content/Context;)Lcom/waiqin365/base/login/c/i;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->i:Lcom/waiqin365/base/login/c/i;

    invoke-static {p1}, Lcom/waiqin365/base/db/zydk/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/zydk/f;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/db/zydk/f;->b()Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->j:Ljava/util/List;

    return-void
.end method

.method public b(Landroid/content/Context;I)V
    .locals 7

    const v6, 0x7f020450

    const/4 v2, 0x1

    const/4 v1, 0x0

    invoke-static {p1}, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->d(Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/fw;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kaoqin/fw;-><init>()V

    invoke-virtual {v0, p1}, Lcom/waiqin365/lightapp/kaoqin/fw;->b(Landroid/content/Context;)V

    :goto_0
    return-void

    :cond_0
    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b(Landroid/content/Context;)V

    const-string/jumbo v0, ""

    if-nez p2, :cond_6

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/fw;->an:Ljava/lang/String;

    :cond_1
    :goto_1
    if-eqz v0, :cond_2

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v3

    if-nez v3, :cond_8

    :cond_2
    :goto_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->a:Landroid/app/NotificationManager;

    if-nez v0, :cond_3

    const-string/jumbo v0, "notification"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/NotificationManager;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->a:Landroid/app/NotificationManager;

    :cond_3
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const v3, 0x7f0803b6

    invoke-virtual {p1, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v3, "!"

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v0

    iget-object v4, v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;->g:Ljava/util/ArrayList;

    if-eqz v4, :cond_b

    move v0, v1

    :goto_3
    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v5

    if-ge v0, v5, :cond_b

    invoke-virtual {v4, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v5

    instance-of v5, v5, Lcom/waiqin365/base/login/LoginMainActivity;

    if-eqz v5, :cond_9

    move v0, v2

    :goto_4
    if-eqz v0, :cond_a

    new-instance v0, Landroid/content/Intent;

    const-class v2, Lcom/waiqin365/lightapp/kaoqin/NewKaoQinActivity;

    invoke-direct {v0, p1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    const/high16 v2, 0x20000000

    invoke-virtual {v0, v2}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    const-string/jumbo v2, "menuid"

    iget-object v4, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    iget-object v4, v4, Lcom/waiqin365/lightapp/kaoqin/fw;->aq:Ljava/lang/String;

    invoke-virtual {v0, v2, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    :goto_5
    iget v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->l:I

    iget-object v2, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    invoke-static {p1, v0, v2, v1}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->c:Landroid/app/PendingIntent;

    new-instance v0, Landroid/app/Notification$Builder;

    invoke-direct {v0, p1}, Landroid/app/Notification$Builder;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0, v6}, Landroid/app/Notification$Builder;->setSmallIcon(I)Landroid/app/Notification$Builder;

    move-result-object v0

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-static {v1, v6}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/Notification$Builder;->setLargeIcon(Landroid/graphics/Bitmap;)Landroid/app/Notification$Builder;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/app/Notification$Builder;->setTicker(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;

    move-result-object v0

    const v1, 0x7f080437

    invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/app/Notification$Builder;->setContentTitle(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/app/Notification$Builder;->setContentText(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->c:Landroid/app/PendingIntent;

    invoke-virtual {v0, v1}, Landroid/app/Notification$Builder;->setContentIntent(Landroid/app/PendingIntent;)Landroid/app/Notification$Builder;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Notification$Builder;->getNotification()Landroid/app/Notification;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    iget-boolean v1, v1, Lcom/waiqin365/lightapp/kaoqin/fw;->c:Z

    if-eqz v1, :cond_4

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "android.resource://"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "/"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const v2, 0x7f060001

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    iput-object v1, v0, Landroid/app/Notification;->sound:Landroid/net/Uri;

    :cond_4
    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    iget-boolean v1, v1, Lcom/waiqin365/lightapp/kaoqin/fw;->d:Z

    if-eqz v1, :cond_5

    iget v1, v0, Landroid/app/Notification;->defaults:I

    or-int/lit8 v1, v1, 0x2

    iput v1, v0, Landroid/app/Notification;->defaults:I

    :cond_5
    iget v1, v0, Landroid/app/Notification;->defaults:I

    or-int/lit8 v1, v1, 0x4

    iput v1, v0, Landroid/app/Notification;->defaults:I

    iget v1, v0, Landroid/app/Notification;->flags:I

    or-int/lit8 v1, v1, 0x10

    iput v1, v0, Landroid/app/Notification;->flags:I

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->a:Landroid/app/NotificationManager;

    iget v2, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->e:I

    invoke-virtual {v1, v2, v0}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V

    goto/16 :goto_0

    :cond_6
    if-ne p2, v2, :cond_7

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/fw;->ao:Ljava/lang/String;

    goto/16 :goto_1

    :cond_7
    const/4 v3, 0x2

    if-ne p2, v3, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/fw;->ap:Ljava/lang/String;

    goto/16 :goto_1

    :cond_8
    new-instance v3, Ljava/text/SimpleDateFormat;

    const-string/jumbo v4, "yyyy-MM-dd HH:mm:ss"

    invoke-direct {v3, v4}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    :try_start_0
    invoke-virtual {v3, v0}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v0

    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v3

    const/4 v4, 0x5

    invoke-virtual {v3, v4}, Ljava/util/Calendar;->get(I)I

    move-result v4

    invoke-virtual {v3, v0}, Ljava/util/Calendar;->setTime(Ljava/util/Date;)V

    const/4 v0, 0x5

    invoke-virtual {v3, v0}, Ljava/util/Calendar;->get(I)I
    :try_end_0
    .catch Ljava/text/ParseException; {:try_start_0 .. :try_end_0} :catch_0

    move-result v0

    if-ne v4, v0, :cond_2

    goto/16 :goto_0

    :cond_9
    add-int/lit8 v0, v0, 0x1

    goto/16 :goto_3

    :cond_a
    new-instance v0, Landroid/content/Intent;

    const-string/jumbo v4, "android.intent.action.MAIN"

    invoke-direct {v0, v4}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    const/high16 v4, 0x10200000

    invoke-virtual {v0, v4}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    const/high16 v4, 0x100000

    invoke-virtual {v0, v4}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    const-string/jumbo v4, "android.intent.category.LAUNCHER"

    invoke-virtual {v0, v4}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    const-string/jumbo v4, "startkaoqin"

    invoke-virtual {v0, v4, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    const-string/jumbo v2, "menuid"

    iget-object v4, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->h:Lcom/waiqin365/lightapp/kaoqin/fw;

    iget-object v4, v4, Lcom/waiqin365/lightapp/kaoqin/fw;->aq:Ljava/lang/String;

    invoke-virtual {v0, v2, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b:Landroid/content/Intent;

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    const-class v4, Lcom/waiqin365/base/login/LoginSplashActivity;

    invoke-virtual {v0, v2, v4}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    goto/16 :goto_5

    :catch_0
    move-exception v0

    goto/16 :goto_2

    :cond_b
    move v0, v1

    goto/16 :goto_4
.end method

.method public b()Z
    .locals 2

    const/4 v0, 0x0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->i:Lcom/waiqin365/base/login/c/i;

    if-nez v1, :cond_1

    :cond_0
    :goto_0
    return v0

    :cond_1
    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->i:Lcom/waiqin365/base/login/c/i;

    iget-boolean v1, v1, Lcom/waiqin365/base/login/c/i;->a:Z

    if-eqz v1, :cond_0

    const/4 v0, 0x1

    goto :goto_0
.end method

.method public c(Landroid/content/Context;)V
    .locals 7

    const v6, 0x7f020450

    const/4 v2, 0x1

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->a:Landroid/app/NotificationManager;

    if-nez v0, :cond_0

    const-string/jumbo v0, "notification"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/NotificationManager;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->a:Landroid/app/NotificationManager;

    :cond_0
    const v0, 0x7f080215

    invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v0

    iget-object v4, v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;->g:Ljava/util/ArrayList;

    if-eqz v4, :cond_3

    move v0, v1

    :goto_0
    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v5

    if-ge v0, v5, :cond_3

    invoke-virtual {v4, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v5

    instance-of v5, v5, Lcom/waiqin365/base/login/LoginMainActivity;

    if-eqz v5, :cond_1

    move v0, v2

    :goto_1
    if-eqz v0, :cond_2

    new-instance v0, Landroid/content/Intent;

    const-class v2, Lcom/waiqin365/lightapp/dailyreport/AddReportsTypeListActivity;

    invoke-direct {v0, p1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const/high16 v2, 0x20000000

    invoke-virtual {v0, v2}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    :goto_2
    iget v2, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->m:I

    invoke-static {p1, v2, v0, v1}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v0

    new-instance v1, Landroid/app/Notification$Builder;

    invoke-direct {v1, p1}, Landroid/app/Notification$Builder;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1, v6}, Landroid/app/Notification$Builder;->setSmallIcon(I)Landroid/app/Notification$Builder;

    move-result-object v1

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-static {v2, v6}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/app/Notification$Builder;->setLargeIcon(Landroid/graphics/Bitmap;)Landroid/app/Notification$Builder;

    move-result-object v1

    invoke-virtual {v1, v3}, Landroid/app/Notification$Builder;->setTicker(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;

    move-result-object v1

    const v2, 0x7f08018b

    invoke-virtual {p1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/app/Notification$Builder;->setContentTitle(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;

    move-result-object v1

    invoke-virtual {v1, v3}, Landroid/app/Notification$Builder;->setContentText(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/app/Notification$Builder;->setContentIntent(Landroid/app/PendingIntent;)Landroid/app/Notification$Builder;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Notification$Builder;->getNotification()Landroid/app/Notification;

    move-result-object v0

    iget v1, v0, Landroid/app/Notification;->defaults:I

    or-int/lit8 v1, v1, -0x1

    iput v1, v0, Landroid/app/Notification;->defaults:I

    iget v1, v0, Landroid/app/Notification;->flags:I

    or-int/lit8 v1, v1, 0x10

    iput v1, v0, Landroid/app/Notification;->flags:I

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->a:Landroid/app/NotificationManager;

    iget v2, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->f:I

    invoke-virtual {v1, v2, v0}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V

    return-void

    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_2
    new-instance v0, Landroid/content/Intent;

    const-string/jumbo v4, "android.intent.action.MAIN"

    invoke-direct {v0, v4}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const/high16 v4, 0x10200000

    invoke-virtual {v0, v4}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    const/high16 v4, 0x100000

    invoke-virtual {v0, v4}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    const-string/jumbo v4, "android.intent.category.LAUNCHER"

    invoke-virtual {v0, v4}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v4, "startdaily"

    invoke-virtual {v0, v4, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    const-class v4, Lcom/waiqin365/base/login/LoginSplashActivity;

    invoke-virtual {v0, v2, v4}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    goto :goto_2

    :cond_3
    move v0, v1

    goto/16 :goto_1
.end method

.method public c()Z
    .locals 2

    const/4 v0, 0x0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->j:Ljava/util/List;

    if-nez v1, :cond_1

    :cond_0
    :goto_0
    return v0

    :cond_1
    iget-object v1, p0, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->j:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_0

    const/4 v0, 0x1

    goto :goto_0
.end method

.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 4

    const/4 v2, 0x0

    invoke-static {p1}, Lcom/fiberhome/gaea/client/c/a;->b(Landroid/content/Context;)Ljava/lang/String;

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    const-string/jumbo v1, "android.intent.action.BOOT_COMPLETED"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->a(Landroid/content/Context;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    const-string/jumbo v1, "android.intent.action.USER_PRESENT"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->a(Landroid/content/Context;)V

    goto :goto_0

    :cond_2
    if-eqz p1, :cond_3

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;

    move-result-object v1

    iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "com.waiqin.lightapp.kaoqin.checkin"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    const-string/jumbo v0, "checkin_type"

    invoke-virtual {p2, v0, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    invoke-virtual {p0, p1, v0}, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->a(Landroid/content/Context;I)V

    goto :goto_0

    :cond_3
    if-eqz p1, :cond_4

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;

    move-result-object v1

    iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "com.waiqin.lightapp.kaoqin.checkout"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_4

    const-string/jumbo v0, "checkout_type"

    invoke-virtual {p2, v0, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    invoke-virtual {p0, p1, v0}, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->b(Landroid/content/Context;I)V

    goto :goto_0

    :cond_4
    if-eqz p1, :cond_5

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;

    move-result-object v1

    iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "com.waiqin.lightapp.kaoqin.zydkcheckon"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_5

    const-string/jumbo v0, "createtime"

    const-wide/16 v2, -0x1

    invoke-virtual {p2, v0, v2, v3}, Landroid/content/Intent;->getLongExtra(Ljava/lang/String;J)J

    move-result-wide v0

    invoke-virtual {p0, p1, v0, v1}, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->a(Landroid/content/Context;J)V

    goto/16 :goto_0

    :cond_5
    if-eqz p1, :cond_0

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;

    move-result-object v1

    iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "com.waiqin.lightapp.daily.checkon"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0, p1}, Lcom/waiqin365/lightapp/kaoqin/NotificationReceiver;->c(Landroid/content/Context;)V

    goto/16 :goto_0
.end method
